﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CONTROLEDataSet" targetNamespace="http://tempuri.org/CONTROLEDataSet.xsd" xmlns:mstns="http://tempuri.org/CONTROLEDataSet.xsd" xmlns="http://tempuri.org/CONTROLEDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="GERENCIAMENTOConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GERENCIAMENTOConnectionString (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.GERENCIAMENTO___VERSA.My.MySettings.GlobalReference.Default.GERENCIAMENTOConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CONTROLETableAdapter" GeneratorDataComponentClassName="CONTROLETableAdapter" Name="CONTROLE" UserDataComponentName="CONTROLETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GERENCIAMENTOConnectionString (MySettings)" DbObjectName="CONTROLE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [CONTROLE] WHERE (([ID] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [CONTROLE] ([PIN], [MODELO], [ENTRADA], [DISPONIBILIDADE], [OBS]) VALUES (@p1, @p2, @p3, @p4, @p5)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PIN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MODELO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ENTRADA" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DISPONIBILIDADE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OBS" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [ID], [PIN], [MODELO], [ENTRADA], [DISPONIBILIDADE], [OBS] FROM [CONTROLE]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [CONTROLE] SET [PIN] = @p1, [MODELO] = @p2, [ENTRADA] = @p3, [DISPONIBILIDADE] = @p4, [OBS] = @p5 WHERE (([ID] = @p6))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PIN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MODELO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ENTRADA" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DISPONIBILIDADE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OBS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p6" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PIN" DataSetColumn="PIN" />
              <Mapping SourceColumn="MODELO" DataSetColumn="MODELO" />
              <Mapping SourceColumn="ENTRADA" DataSetColumn="ENTRADA" />
              <Mapping SourceColumn="DISPONIBILIDADE" DataSetColumn="DISPONIBILIDADE" />
              <Mapping SourceColumn="OBS" DataSetColumn="OBS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="GERENCIAMENTOConnectionString (MySettings)" DbObjectName="CONTROLE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByDISPO" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="FillByDISPO" GetMethodModifier="Public" GetMethodName="GetDataBy1" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByDISPO">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [ID], [PIN], [MODELO], [ENTRADA], [DISPONIBILIDADE], [OBS] FROM [CONTROLE]
WHERE DISPONIBILIDADE = @DISPONIBILIDADE
ORDER BY PIN</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="DISPONIBILIDADE" ColumnName="DISPONIBILIDADE" DataSourceName="CONTROLE" DataTypeServer="nvarchar(150)" DbType="String" Direction="Input" ParameterName="@DISPONIBILIDADE" Precision="0" ProviderType="NVarChar" Scale="0" Size="150" SourceColumn="DISPONIBILIDADE" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="GERENCIAMENTOConnectionString (MySettings)" DbObjectName="CONTROLE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByENTRADA" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy2" GeneratorSourceName="FillByENTRADA" GetMethodModifier="Public" GetMethodName="GetDataBy2" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByENTRADA">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [ID], [PIN], [MODELO], [ENTRADA], [DISPONIBILIDADE], [OBS] FROM [CONTROLE]
WHERE ENTRADA =@ENTRADA
ORDER BY PIN</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ENTRADA" ColumnName="ENTRADA" DataSourceName="CONTROLE" DataTypeServer="datetime(8)" DbType="DateTime" Direction="Input" ParameterName="@ENTRADA" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="ENTRADA" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="GERENCIAMENTOConnectionString (MySettings)" DbObjectName="CONTROLE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPIN" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillByPIN" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillByPIN">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [ID], [PIN], [MODELO], [ENTRADA], [DISPONIBILIDADE], [OBS] FROM [CONTROLE]
WHERE PIN LIKE '%' +@PIN + '%'</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PIN" ColumnName="PIN" DataSourceName="CONTROLE" DataTypeServer="nvarchar(150)" DbType="String" Direction="Input" ParameterName="@PIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="150" SourceColumn="PIN" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CONTROLEDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="CONTROLEDataSet" msprop:Generator_UserDSName="CONTROLEDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CONTROLE" msprop:Generator_TableClassName="CONTROLEDataTable" msprop:Generator_TableVarName="tableCONTROLE" msprop:Generator_TablePropName="CONTROLE" msprop:Generator_RowDeletingName="CONTROLERowDeleting" msprop:Generator_UserTableName="CONTROLE" msprop:Generator_RowChangingName="CONTROLERowChanging" msprop:Generator_RowEvHandlerName="CONTROLERowChangeEventHandler" msprop:Generator_RowDeletedName="CONTROLERowDeleted" msprop:Generator_RowEvArgName="CONTROLERowChangeEvent" msprop:Generator_RowChangedName="CONTROLERowChanged" msprop:Generator_RowClassName="CONTROLERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PIN" msprop:Generator_ColumnVarNameInTable="columnPIN" msprop:Generator_ColumnPropNameInRow="PIN" msprop:Generator_ColumnPropNameInTable="PINColumn" msprop:Generator_UserColumnName="PIN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MODELO" msprop:Generator_ColumnVarNameInTable="columnMODELO" msprop:Generator_ColumnPropNameInRow="MODELO" msprop:Generator_ColumnPropNameInTable="MODELOColumn" msprop:Generator_UserColumnName="MODELO" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ENTRADA" msprop:Generator_ColumnVarNameInTable="columnENTRADA" msprop:Generator_ColumnPropNameInRow="ENTRADA" msprop:Generator_ColumnPropNameInTable="ENTRADAColumn" msprop:Generator_UserColumnName="ENTRADA" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DISPONIBILIDADE" msprop:Generator_ColumnVarNameInTable="columnDISPONIBILIDADE" msprop:Generator_ColumnPropNameInRow="DISPONIBILIDADE" msprop:Generator_ColumnPropNameInTable="DISPONIBILIDADEColumn" msprop:Generator_UserColumnName="DISPONIBILIDADE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OBS" msprop:Generator_ColumnVarNameInTable="columnOBS" msprop:Generator_ColumnPropNameInRow="OBS" msprop:Generator_ColumnPropNameInTable="OBSColumn" msprop:Generator_UserColumnName="OBS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CONTROLE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>